//
//  ImageSelectView.h
//  PhotoSelector
//
//  Created by 李李善 on 2017/9/16.
//  Copyright © 2017年 洪雯. All rights reserved.
//

#import <UIKit/UIKit.h>


typedef  NS_OPTIONS(NSInteger,CellType)
{
  addImageCellType,
  selectCellType,
    
};

@protocol ImageSelectViewDelegat <NSObject>

-(void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath Image:(UIImage *)image Type:(CellType)type;

@end


@interface ImageSelectView : UICollectionView<UICollectionViewDelegate,UICollectionViewDataSource>
@property(nonatomic,strong )  NSMutableArray *dataImages;
@property(nonatomic,weak)id<ImageSelectViewDelegat>viewdelegae;
- (instancetype)initWithSize:(CGSize)size Inset:(UIEdgeInsets)Intse;
-(void)updateCellForImages:(NSMutableArray *)images;
@end



@interface ImageSelectViewcell : UICollectionViewCell


@property(nonatomic,strong )  UIImageView *imageV;
@property(nonatomic,strong) UIImageView *BigImageView;
-(void)update:(id)model CollectionView:(UICollectionView *)collectionView IndexPath:(NSIndexPath *)indexPath;

/** 查看大图 */
- (void)setBigImageViewWithImage:(UIImage *)image;
@end
